class inary:
    class source:
        name = "shadow"
        homepage = "https://gitlab.com/sulinos/devel/inary"


        class packager:
            name = "Ali Riza KESKIN"
            email = "parduscix@yandex.ru"
        license = "GPLv3"
        isa = []
        summary = "Password and account management tool suite with support for shadow files and PAM"
        description = "Password and account management tool suite with support for shadow files and PAM"
        archive = [("32d262892ddc68d5a3287d711cd8029112891cc6","https://github.com/shadow-maint/shadow/archive/refs/tags/4.8.zip"),
          ]
        builddependencies = []
        packages = ["package","package_docs" , "package_devel",
                    "package_pages"]

    class package:
        name = "shadow"
        runtimedependencies = ["pam","pam-base","libcap-ng","audit"]
        files = [("config", "/etc"),
                 ("localedata", "/usr/share/locale"),
                 ("info", "/usr/share/info"),
                 ("data", "/usr/share"),
                 ("executable", "/usr/bin"),
                 ("executable", "/usr/sbin"),
                 ("library", "/usr/lib"),
                 ("library", "/lib"),
                 ("library", "/usr/libexec"),
                 ("executable", "/sbin"),
                 ("executable", "/bin")]
        # pam disabled
        additionalfiles_disabled = [
            ("pam.d/chage","root","0644","/etc/pam.d/chage"),
            ("pam.d/chfn","root","0644","/etc/pam.d/chfn"),
            ("pam.d/chgpasswd","root","0644","/etc/pam.d/chgpasswd"),
            ("pam.d/chpasswd","root","0644","/etc/pam.d/chpasswd"),
            ("pam.d/chsh","root","0644","/etc/pam.d/chsh"),
            ("pam.d/groupadd","root","0644","/etc/pam.d/groupadd"),
            ("pam.d/groupdel","root","0644","/etc/pam.d/groupdel"),
            ("pam.d/groupmod","root","0644","/etc/pam.d/groupmod"),
            ("pam.d/groupmems","root","0644","/etc/pam.d/groupmod"),
            ("pam.d/login","root","0644","/etc/pam.d/login"),
            ("pam.d/newusers","root","0644","/etc/pam.d/newusers"),
            ("pam.d/other","root","0644","/etc/pam.d/other"),
            ("pam.d/passwd","root","0644","/etc/pam.d/passwd"),
            ("pam.d/password-auth","root","0644","/etc/pam.d/password-auth"),
            ("pam.d/start-stop-daemon","root","0644","/etc/pam.d/start-stop-daemon"),
            ("pam.d/su","root","0644","/etc/pam.d/su"),
            ("pam.d/su-l","root","0644","/etc/pam.d/su-l"),
            ("pam.d/system-auth","root","0644","/etc/pam.d/system-auth"),
            ("pam.d/system-login","root","0644","/etc/pam.d/system-login"),
            ("pam.d/system-local-login","root","0644","/etc/pam.d/system-local-login"),
            ("pam.d/system-remote-login","root","0644","/etc/pam.d/system-remote-login"),
            ("pam.d/system-services","root","0644","/etc/pam.d/system-services"),
            ("pam.d/useradd","root","0644","/etc/pam.d/useradd"),
            ("pam.d/userdel","root","0644","/etc/pam.d/userdel"),
            ("pam.d/usermod","root","0644","/etc/pam.d/usermod"),
        ]
        additionalfiles = [
                    ("login.defs","root","0644","/etc/login.defs"),
        ]
    class package_docs:
        name = "shadow-docs"
        runtimedependencies = []
        files = [("library", "/usr/share/doc/")]

    class package_pages:
        name = "shadow-pages"
        runtimedependencies = []
        files = [("library", "/usr/share/man/")]

    class package_devel:
        name = "shadow-devel"
        runtimedependencies = []
        files = [("data", "/usr/lib/pkgconfig"),
                 ("header", "/usr/include")]

    class history:
        update = [
            ["2021-08-31", "4.8", "First release",
                "Ali Riza KESKIN", "parduscix@yandex.ru"],
        ]
